<%@ page import="kioscodeal.User"%>
<!DOCTYPE html>
<html>
<head>
<meta name="layout" content="main">
<g:set var="entityName"
	value="${message(code: 'user.label', default: 'User')}" />
<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>
<body>

	<div class="row">
		<div class="col-lg-12">
			<div class="panel panel-info">
				<div class="panel-heading">
					<div class="row">
						<div class="col-xs-6">
							<i class="fa fa-check fa-5x"></i>
						</div>
						<div class="col-xs-6 text-left">
							<p class="announcement-heading">
							<h1>
								<g:message code="default.show.label" args="[entityName]" />
							</h1>
							</p>

							<p class="announcement-text">
							<div id="show-producto" class="content scaffold-show" role="main">
								<g:if test="${flash.message}">
									<div class="message" role="status">
										${flash.message}
									</div>
								</g:if>
								<div class="row">
									<ol class="property-list producto">

										<g:if test="${userInstance?.login}">
											<li class="fieldcontain"><span id="login-label"
												class="property-label"><g:message
														code="user.login.label" default="Login: " /></span> <span
												class="property-value" aria-labelledby="login-label"><g:fieldValue
														bean="${userInstance}" field="login" /></span></li>
										</g:if>

										<g:if test="${userInstance?.password}">
											<li class="fieldcontain"><span id="password-label"
												class="property-label"><g:message
														code="user.password.label" default="Password: " /></span> <span
												class="property-value" aria-labelledby="password-label"><g:fieldValue
														bean="${userInstance}" field="password" /></span></li>
										</g:if>

										<g:if test="${userInstance?.role}">
											<li class="fieldcontain"><span id="role-label"
												class="property-label"><g:message
														code="user.role.label" default="Role: " /></span> <span
												class="property-value" aria-labelledby="role-label"><g:fieldValue
														bean="${userInstance}" field="role" /></span></li>
										</g:if>

										<g:if test="${userInstance?.nombre}">
											<li class="fieldcontain"><span id="nombre-label"
												class="property-label"><g:message
														code="user.nombre.label" default="Nombre: " /></span> <span
												class="property-value" aria-labelledby="nombre-label"><g:fieldValue
														bean="${userInstance}" field="nombre" /></span></li>
										</g:if>

										<g:if test="${userInstance?.apellido}">
											<li class="fieldcontain"><span id="apellido-label"
												class="property-label"><g:message
														code="user.apellido.label" default="Apellido: " /></span> <span
												class="property-value" aria-labelledby="apellido-label"><g:fieldValue
														bean="${userInstance}" field="apellido" /></span></li>
										</g:if>

										<g:if test="${userInstance?.calle}">
											<li class="fieldcontain"><span id="calle-label"
												class="property-label"><g:message
														code="user.calle.label" default="Calle: " /></span> <span
												class="property-value" aria-labelledby="calle-label"><g:fieldValue
														bean="${userInstance}" field="calle" /></span></li>
										</g:if>

										<g:if test="${userInstance?.numeroDireccion}">
											<li class="fieldcontain"><span
												id="numeroDireccion-label" class="property-label"><g:message
														code="user.numeroDireccion.label"
														default="Numero Direccion: " /></span> <span
												class="property-value"
												aria-labelledby="numeroDireccion-label"><g:fieldValue
														bean="${userInstance}" field="numeroDireccion" /></span></li>
										</g:if>

										<g:if test="${userInstance?.dni}">
											<li class="fieldcontain"><span id="dni-label"
												class="property-label"><g:message
														code="user.dni.label" default="Dni: " /></span> <span
												class="property-value" aria-labelledby="dni-label"><g:fieldValue
														bean="${userInstance}" field="dni" /></span></li>
										</g:if>

										<g:if test="${userInstance?.telefonoFijo}">
											<li class="fieldcontain"><span id="telefonoFijo-label"
												class="property-label"><g:message
														code="user.telefonoFijo.label" default="Telefono Fijo: " /></span>

												<span class="property-value"
												aria-labelledby="telefonoFijo-label"><g:fieldValue
														bean="${userInstance}" field="telefonoFijo" /></span></li>
										</g:if>

										<g:if test="${userInstance?.mail}">
											<li class="fieldcontain"><span id="mail-label"
												class="property-label"><g:message
														code="user.mail.label" default="E-Mail: " /></span> <span
												class="property-value" aria-labelledby="mail-label"><g:fieldValue
														bean="${userInstance}" field="mail" /></span></li>
										</g:if>

										<g:if test="${userInstance?.minimoCompra}">
											<li class="fieldcontain"><span id="minimoCompra-label"
												class="property-label"><g:message
														code="user.minimoCompra.label" default="Minimo Compra: " /></span>

												<span class="property-value"
												aria-labelledby="minimoCompra-label"><g:fieldValue
														bean="${userInstance}" field="minimoCompra" /></span></li>
										</g:if>

										<g:if test="${userInstance?.codigoPostal}">
											<li class="fieldcontain"><span id="codigoPostal-label"
												class="property-label"><g:message
														code="user.codigoPostal.label" default="Codigo Postal: " /></span>

												<span class="property-value"
												aria-labelledby="codigoPostal-label"><g:fieldValue
														bean="${userInstance}" field="codigoPostal" /></span></li>
										</g:if>

										<g:if test="${userInstance?.estado}">
											<li class="fieldcontain"><span id="estado-label"
												class="property-label"><g:message
														code="user.estado.label" default="Estado: " /></span> <span
												class="property-value" aria-labelledby="estado-label"><g:fieldValue
														bean="${userInstance}" field="estado.value" /></span></li>
										</g:if>

										<g:if test="${userInstance?.fechaNacimiento}">
											<li class="fieldcontain"><span
												id="fechaNacimiento-label" class="property-label"><g:message
														code="user.fechaNacimiento.label"
														default="Fecha Nacimiento: " /></span> <span
												class="property-value"
												aria-labelledby="fechaNacimiento-label"><g:formatDate
														format="dd-MM-yyyy" date="${userInstance?.fechaNacimiento}" /></span></li>
										</g:if>

										<g:if test="${userInstance?.numeroDepartamento}">
											<li class="fieldcontain"><span
												id="numeroDepartamento-label" class="property-label"><g:message
														code="user.numeroDepartamento.label"
														default="Numero Departamento: " /></span> <span
												class="property-value"
												aria-labelledby="numeroDepartamento-label"><g:fieldValue
														bean="${userInstance}" field="numeroDepartamento" /></span></li>
										</g:if>

										<g:if test="${userInstance?.piso}">
											<li class="fieldcontain"><span id="piso-label"
												class="property-label"><g:message
														code="user.piso.label" default="Piso: " /></span> <span
												class="property-value" aria-labelledby="piso-label"><g:fieldValue
														bean="${userInstance}" field="piso" /></span></li>
										</g:if>

										<g:if test="${userInstance?.telefonoMovil}">
											<li class="fieldcontain"><span id="telefonoMovil-label"
												class="property-label"><g:message
														code="user.telefonoMovil.label" default="Telefono Movil: " /></span>

												<span class="property-value"
												aria-labelledby="telefonoMovil-label"><g:fieldValue
														bean="${userInstance}" field="telefonoMovil" /></span></li>
										</g:if>

									</ol>
								</div>
								<g:form url="[resource:userInstance, action:'delete']"
									method="DELETE">
									<fieldset class="buttons">
										<g:link class="edit" action="edit" resource="${userInstance}">
											<g:message code="default.button.edit.label" default="Edit" />
										</g:link>
										<g:actionSubmit class="delete" action="delete"
											value="${message(code: 'default.button.delete.label', default: 'Delete')}"
											onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Esta seguro?')}');" />
									</fieldset>
								</g:form>
							</div>
							</p>
						</div>
					</div>
				</div>
				<div class="panel-footer announcement-bottom">
					<div class="row">
						<div class="nav" role="navigation">
							<div class="row">
								<div class="col-lg-3"></div>
								<div class="col-lg-2">
									<a class="home" href="${createLink(uri: '/')}"><g:message
											code="default.home.label" /></a>
								</div>
								<div class="col-lg-2">
									<g:link class="list" action="index">
										<g:message code="default.list.label" args="[entityName]" />
									</g:link>
								</div>
								<div class="col-lg-2">
									<g:link class="create" action="create">
										<g:message code="default.new.label" args="[entityName]" />
									</g:link>
								</div>
								<div class="col-lg-3"></div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>